const ajax = value => {
  return new Promise((resovle, rej) => {
    setTimeout(() => {
      resovle(value);
    }, 1000);
  });
};

const list = [1, 2];
const tesk = list.map(value => ajax(value));
Promise.all(tesk).then(value => {
  console.log(value);
});
